package cn.dmrliu.edu.publish.service.impl;

import cn.dmrliu.edu.publish.bean.ToolExamCourseStats;
import cn.dmrliu.edu.publish.bean.ToolExamPaperStats;
import cn.dmrliu.edu.publish.bean.ToolExamQuestionStats;
import cn.dmrliu.edu.publish.bean.ToolExamScoreStats;
import cn.dmrliu.edu.publish.mapper.ToolExamMapper;
import cn.dmrliu.edu.publish.service.ToolExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ToolExamServiceImpl implements ToolExamService {

    @Autowired
    ToolExamMapper toolExamMapper;


    @Override
    public List<ToolExamPaperStats> getPaperStats(Integer date) {
        return toolExamMapper.getPaperStats(date);
    }

    @Override
    public List<ToolExamCourseStats> getCourseStats(Integer date) {
        return toolExamMapper.getCourseStats(date);
    }

    @Override
    public List<ToolExamScoreStats> getScoreStats(Integer date) {
        return toolExamMapper.getScoreStats(date);
    }

    @Override
    public List<ToolExamQuestionStats> getQuestionStats(Integer date) {
        return toolExamMapper.getQuestionStats(date);
    }
}
